using System;
using System.Text.RegularExpressions;
using System.IO;

namespace PDiccionario
{
	class MainClass
	{
		public static void Main (string[] args)
		{
			StreamReader streamReader = new StreamReader("./prueba");
			string text=streamReader.ReadToEnd().ToLower();
			text=Regex.Replace(text,@"[^\w\ ]","");
			streamReader.Close();
			string[] words=text.Split(' ');
			MyDict myDict=new MyDict();
			foreach (string word in words) {
				myDict.Add(word);
			}
			myDict.ShowAll();
	}
}
}